

/**
 * business service ejb wrapper 
 * Created by EJBGenerator
 * based on velocity technology
 */

public class ejb_Local extends nc.bs.mw.naming.BeanBase
    implements nc.itf.gmshicky.ejbEjbObject {
   
  public ejb_Local() {
	super();
  }

  private nc.itf.gmshicky.ejbEjbBean _getBeanObject() throws java.rmi.RemoteException {
    return (nc.itf.gmshicky.ejbEjbBean) getEjb();
  }

  public java.lang.Object selectInventoryArchives(nc.vo.pub.SuperVO arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gmshicky.ejb_Method_Const_Local.Method_selectInventoryArchives$SuperVO_arg0    );
    Exception er = null;
	java.lang.Object o = null;
	try{
				o = (java.lang.Object)_getBeanObject().selectInventoryArchives(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gmshicky.ejb_Method_Const_Local.Method_selectInventoryArchives$SuperVO_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.lang.Object selectYsSkBalance(nc.vo.pub.SuperVO arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gmshicky.ejb_Method_Const_Local.Method_selectYsSkBalance$SuperVO_arg0    );
    Exception er = null;
	java.lang.Object o = null;
	try{
				o = (java.lang.Object)_getBeanObject().selectYsSkBalance(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gmshicky.ejb_Method_Const_Local.Method_selectYsSkBalance$SuperVO_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.lang.String webItf(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.gmshicky.ejb_Method_Const_Local.Method_webItf$String_arg0    );
    Exception er = null;
	java.lang.String o = null;
	try{
				o = (java.lang.String)_getBeanObject().webItf(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.gmshicky.ejb_Method_Const_Local.Method_webItf$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
}